package com.zzyl.nursing.job;

import com.zzyl.nursing.domain.Contract;
import com.zzyl.nursing.mapper.ContractMapper;
import com.zzyl.nursing.service.IContractService;
import com.zzyl.nursing.service.impl.ContractServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @Description ContractJob
 * @Author anru
 * @Date 2025-02-21 17:30
 */
@Component
@Slf4j
public class ContractJob {
    @Autowired
    private IContractService contractService;

    //@Scheduled(cron = "0/5 * * * * ?")
    public void updateContractStatusJob() {
        contractService.updateContractStatus();
        log.info("定时更新合同状态成功！");

    }
}
